import React from 'react';
import { Route, Routes, useNavigate } from 'react-router-dom';
import LoginPage from './login';
import IdePage from './ide';
import { setNavigate } from '@/api/request';

export default function Index() {
  const navigate = useNavigate();
  setNavigate(navigate);
  return (
    <Routes>
      <Route path="/" element={<IdePage/>}></Route>
      <Route path="/login" element={<LoginPage/>}></Route>
    </Routes>);
}
